<html>
	<head>
		<title>{$sitetitle}</title>
		<script src="ueditor/ueditor.parse.js"></script>
		<script>
			uParse('.text', {
   				 rootPath: 'ueditor/'
			})
			var pagekind = 'viewport';
		</script>
	</head>
	<body onload="getRemark({$article.id})">
		<div class="rightContent">
			<div class="article">
				<div class="position">当前位置：<a href="{$indexURL}">首页</a> 
					{if $article.ispage==0}
					>> <a href="{$indexURL}index.php?type={$article.kindid}">{if $artkind}{$artkind}{else}杂记{/if}</a> 
					>> <a href="{$indexURL}view.php?article={$article.id}">{$article.title}</a></div>
					{else}
					>> <a href="{$indexURL}view.php?article={$article.id}">{$article.title}</a></div>
					{/if}
				<div class="text">
					<div class="thetitle">
						<p>CONTENT</p>
					</div>
					<h1 class="artitle">{$article.title}</h1>
					{$article.content}
					<div class="info">{$article.author} {$time} 天气 晴</div>
				</div>
				<div class="remark">
					<div class="thetitle">
						<p>REMARKS</p>
					</div>				
					<div class="remarkInput">
						<div class="list">
							<input id = "name" class="remarkText" type='text' placeholder="名称" {if $user}value="{$user.username}" readonly{/if}>
							<input id = "email" class="remarkText" type='text' placeholder="邮箱" {if $user.email}value="{$user.email}" readonly{/if}>
							<input id = "url" class="remarkText" type='text' placeholder="网址" {if $user.website}value="{$user.website}" readonly{/if}>
						</div>
						<div class="list">
							<img src="source/head/{if $user}{$user.headpic}{else}none.png{/if}">
							<textarea id="content" placeholder="这里填写评论内容"></textarea>
						</div>
						<div class="list">
							<button type="submit" onclick="submitForm({$article.id},'{if $user.username}{$user.username}{else}{/if}')">提交</button>
						</div>
					</div>

					<div class="remarkContent">
					{if $a}
					{foreach $remark as $value}
							<div class="remarkOne">
								<div class="remarkInfo">
									<img src="source/head/{if $value.headpic}{$value.headpic}{else}none.png{/if}">
									<a class="name">{$value.name}</a>
									<div class="time">发表于 {$value.pubtime} </div>
								</div>
								<div class="remarkText">
									{$value.content}
								</div>
							</div>
						
					{/foreach}
					{/if}
					</div>

					<div class="page">
						
					</div>
							
				</div>
				</div>
			</div>
		</div>
	</body>
</html>